package cn.openea.perpartner.payment.web.coupon.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@TableName("payment_coupon_batch")
public class CouponBatch implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "优惠券ID")
    @TableId
    private Long couponId;
    @ApiModelProperty(value = "批次ID")
    private Long batchId;
    @ApiModelProperty(value = "批次名称")
    private String batchName;
    @ApiModelProperty(value = "优惠券名称")
    private String couponName;
    @ApiModelProperty(value = "优惠券金额")
    private BigDecimal couponAmount;
    @ApiModelProperty(notes = "0：立减，1：满减，2：折扣")
    private String couponType;
    @ApiModelProperty(notes = "0：允许叠加，1：不允许叠加")
    private String allowStack;
    @ApiModelProperty(notes = "优惠券数量，0表示无限")
    private Integer couponNum;
    @ApiModelProperty(notes = "限领数量，0表示无限制")
    private Integer drawNum;
    @ApiModelProperty(notes = "ALL:全场通用,指定商品:商品id,指定分类:SUMMER")
    private String useScope;
    @ApiModelProperty(notes = "使用门槛，满减或折扣时填写")
    private String useThresholds;
    @ApiModelProperty(notes = "0：不可领取，1：开放领取")
    private String openPickup;
    @ApiModelProperty(notes = "时效")
    private Integer aging;
    @ApiModelProperty(notes = "优惠券描述")
    private String remark;
    @TableField(fill = FieldFill.INSERT)
    private String createTime;


}

